<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<title><?php echo $this->config->item('site_setting', 'title');?></title>
	<link rel="stylesheet" href="../static/zuanla/lib/bootcss/css/bootstrap.min.css">
	<link rel="stylesheet" href="../static/zuanla/lib/bootcss/css/bootstrap-theme.min.css">
	<script src="../static/zuanla/lib/jquery/1.9.1/jquery.min.js"></script>
	<script src="../static/zuanla/lib/webuploader/webuploader.min.js"></script>
	<script src="../static/zuanla/lib/template/template.min.js"></script>
	<script>
		var _global = <?php echo json_encode($_SESSION['service']); ?>;
		console.log(_global);
	</script>

	<link rel="stylesheet" href="../static/zuanla/css/index.css">
</head>
<body>
	<div class="container-fluid">
		<aside id="j-sidebar" class="sidebar">
			<dl>

			</dl>
		</aside>
		<section class="main">
			<div class="dialog-hd">
				<span id="j-nickname" class="nickname">当前没有用户</span><span class="status">在线</span>
			</div>
			<div id="j-dialog" class="dialog-bd">

			</div>
			<div class="dialog-tool">
				<div class="tool-hd">
					<a id="j-picker" href="javascript:;">发送图片</a>
				</div>
				<div class="tool-bd">
					<textarea id="j-content" rows="5"></textarea>
				</div>
				<div class="tool-ft">
					<a id="j-sub" href="javascript:;">发送</a>
				</div>
			</div>
			<div style="position: absolute;right: 0;top: 0;">
				管理员：<span style="margin-right: 15px;"><?php echo $_SESSION['service']->nickname; ?></span><a class="btn btn-link" href="/">退出</a>
			</div>
		</section>
	</div>
	<script id="tpl-user" type="text/html">
		{{if data && data.length}}
			{{each data as d i}}
			<dt id="j-user-{{d.uid}}" class="{{if i == 0}}active loaded{{/if}}" data-id="{{d.uid}}" data-name="{{d.nickname}}"><img class="headimg" src="../static/zuanla/src/user.png"><span class="nickname">{{d.nickname}}</span><span class="tip"></span></dt>
			{{/each}}
		{{else}}
			<p id="j-nouser" style="text-align: center; margin-top: 10px;">暂无在线用户</p>
		{{/if}}
	</script>
	<script id="tpl-add-user" type="text/html">
		<dt id="j-user-{{uid}}" class="loaded" data-id="{{uid}}" data-name="{{nickname}}"><img class="headimg" src="../static/zuanla/src/user.png"><span class="nickname">{{nickname}}</span><span class="tip"></span></dt>
	</script>
	<script id="tpl-dialog" type="text/html">
		<div id="j-dialog-{{uid}}" class="dialog-scroll">
					
		</div>
	</script>
	<script id="tpl-msg-fromer" type="text/html">
		<div class="msg fromer">
			<img class="msg-img" src="../static/zuanla/src/user.png">
			<div class="msg-content">
				{{if type && type == 'image'}}
					<img src="{{content}}">
				{{else}}
					{{content}}
				{{/if}}
			</div>
			<span class="msg-arrow"></span>
		</div>
	</script>
	<script id="tpl-msg-sender" type="text/html">
		<div class="msg sender">
			<img class="msg-img" src="../static/zuanla/src/admin.png">
			<div class="msg-content">
				{{if type && type == 'image'}}
					<a href="{{content}}" target="_blank"><img src="{{content}}"></a>
				{{else}}
					{{content}}
				{{/if}}
			</div>
			<span class="msg-arrow"></span>
		</div>
	</script>
	<script src="../static/zuanla/js/index.js"></script>
</body>
</html>